<%-- 
    Document   : updateinfo
    Created on : Apr 5, 2012, 9:44:15 PM
    Author     : Vishwakarma
--%>

<%@include file="header.jsp" %>

<%@page import="jobportal.Dbconn"%>
<%@page import="java.sql.*" %>
<%          Connection con=null;
            Statement st=null;
            String username="";
            if(request.getParameter("admemid")!=null)
            username=request.getParameter("admemid");
            else
                username=(String)session.getAttribute("username");
                String name = "",email = "";
            try {
                con = Dbconn.getConn();
                st = con.createStatement();
                ResultSet rs;
                
                String sql="select * from admin where userid='"+username+"'";
                rs=st.executeQuery(sql);
                if(rs.next()){
                    name=rs.getString("name");
                   email=rs.getString("email");
                   

                }
           

%>



<span class="mainheading_js">My Personal Information </span><img src="../../images/blank.gif" alt="blank" width="18" height="17" border="0" /><br>
<div class="sde_mnu_hdr_blue" style="text-align:center">
  <%if(request.getAttribute("status")!=null){out.println(request.getAttribute("status"));
						request.removeAttribute("status");}%>
</div>
<br>
<span class="messagesred">
</span>
<table width="100%" style="border: 1px solid rgb(169, 211, 225);" align="left">
<script>
$(document).ready(function(){
    $("#editadmin").validationEngine();
   });
</script>
    <form id="editadmin" name="editadmin" action="editadmin" >

        <tr valign="middle">
            <td height="21" colspan="4" align="left" class="bluebg"><strong>Edit Admin Member </strong></td>
        </tr>
        <tr>
            <td width="23%" align="right" valign="top" class="normal">User Id</td>
            <td width="3%" align="center" valign="top" class="deepbluetext">:</td>
            <td colspan="2" valign="top">
                <div align="left">
                    <input name="username" id="username"  type="text" value="<%=username%>" class="validate[required] textfield" readonly size="40" maxlength="40"  />
                </div>            </td>
        </tr>
        <tr>
            <td align="right" valign="top" class="normal">Name </td>
            <td align="center" valign="top" class="deepbluetext">:</td>
            <td colspan="2" valign="top"><input name="fname" type="text" value="<%=name%>" class="validate[required] textfield" id="fname" size="40" maxlength="40" /></td>
        </tr>

        <tr>
            <td valign="top" class="deepbluetext"><div align="right" class="normal">Email</div></td>
            <td align="center" valign="top" class="deepbluetext">:</td>
            <td colspan="2" valign="top"><div align="left">
                    <input name="email" type="text" value="<%=email%>" class="validate[required,custom[email]] textfield" id="email" size="40" maxlength="40" />
                </div>            </td>
        </tr>
       




        <tr>
            <th height="26" valign="top" scope="row">&nbsp;</th>
            <td align="center" valign="top">&nbsp;</td>
            <td colspan="2" valign="top"><input name="btnsubmit" type="submit" id="btnsubmit" class="button2" value="Edit Member" /></td>
        </tr>
    </form>
</table>
                                <%
 } catch (Exception e) {
     out.println(e);
            }finally{
                st.close();
                con.close();
            }

%>
<%@include file="footer.jsp" %>